package com.zyd.shiro.persistence.beans;

import com.zyd.shiro.business.annotation.FieldValue;
import com.zyd.shiro.business.annotation.TitleValue;
import com.zyd.shiro.business.enums.MenuEnum;
import com.zyd.shiro.framework.object.AbstractDataDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2020-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TitleValue(name = "入库单",nume = MenuEnum.MODULE,code = "warehousing")
public class PakWarehousing extends AbstractDataDO {

    @FieldValue(name = "入库单号")
    private String unicode;

    @FieldValue(name = "入库类型")//1手动 2批量
    private Integer type;

    @FieldValue(name = "入库时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date wareTime;

    @FieldValue(name = "审批状态")
    private Integer appstatus;//0审批中 1审批通过 2撤销

    @FieldValue(name = "单据状态")
    private Integer docstatus;//0未入库 1已入库

    @FieldValue(name = "资产")
    private Long assets;
}
